//
//  DateHelper.swift
//  Screen
//
//  Created by Natsu on 12/26/16.
//  Copyright © 2016 alex.chih. All rights reserved.
//

import UIKit

class DateHelper: NSObject
{
    //"yyyy-MM-dd HH:mm:ss"
    public static func CurrentDate(format:String) -> String
    {
        let nowDate = Date()
        let formatter = DateFormatter()
        formatter.dateFormat = format
        let dateString = formatter.string(from: nowDate)
        
        return dateString
    }
    
    public func daysFromToday(date:String) -> Int
    {
        return 0
    }
    
    public func extractDate(date:String, format:String) -> String
    {
        return ""
    }
}
